package TestDay;

import java.util.Scanner;
public class Test2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入整数n");
        int n=sc.nextInt();
        chengfabiao(n);

    }
    public static void chengfabiao(int a){
        System.out.println("乘法表：");
        for (int i = 1; i <=a ; i++) {
            for (int j = 1; j <=i ; j++) {
                System.out.print(j+"*"+i+"="+j*i+"\t");

            }
            System.out.println();
        }
    }
}
